/**
 * 
 */
package com.youth.fund.hk.hostManager.manager.service.impl;


import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import com.youth.fund.hk.hostManager.common.dao.ICommonDao;
import com.youth.fund.hk.hostManager.common.service.impl.CommonService;
import com.youth.fund.hk.hostManager.manager.dao.RecruitmentDao;
import com.youth.fund.hk.hostManager.manager.datamodel.RecruitmentModel;
import com.youth.fund.hk.hostManager.manager.service.InitService;
import com.youth.fund.hk.hostManager.manager.service.RecruitmentService;
import com.youth.fund.hk.hostManager.thymeleaf.service.ThymeleafService;

/**
 * @author Sunk_Sky
 *
 * 2014年11月9日下午1:15:53
 */
@Service("RecruitmentService")
public class RecruitmentServiceImpl extends CommonService<RecruitmentModel> implements
		RecruitmentService
{
	@Autowired
	@Qualifier("InitService")
	private InitService initService;
	
	@Autowired
	@Qualifier("ThymeleafService")
	private ThymeleafService thymeleafService;
	
	private RecruitmentDao dao;

	/* (non-Javadoc)
	 * @see com.youth.fund.hk.hostManager.common.service.impl.CommonService#setCommonDao(com.youth.fund.hk.hostManager.common.dao.ICommonDao)
	 */
	@Autowired
	@Qualifier("RecruitmentDao")
	@Override
	public void setCommonDao(ICommonDao<RecruitmentModel> commonDao)
	{
		this.commonDao = commonDao;
		
		this.dao = (RecruitmentDao) commonDao;
	}

	/* (non-Javadoc)
	 * @see com.youth.fund.hk.hostManager.common.service.impl.CommonService#generateHtml(java.io.Serializable)
	 */
	@Override
	public void generateHtml(RecruitmentModel model)
	{
//		this.initService.initAll();
		
//		Map<String,Object> dataMap = new HashMap<String, Object>();
//		
//		RecruitmentModel condition = new RecruitmentModel();
//		
//		condition.setLang(model.getLang());
//		
//		List<RecruitmentModel> list = this.commonDao.query(condition);
//		
//		dataMap.put("recuitmentList", list);
//		
//		dataMap.put("test", "WELCOME");
//
//		thymeleafService.transferType(model.getLang()+"/recruitment/jobs",dataMap );
		
	}

	
}
